placesview: implement available space
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 3 Nov 2015 02:50:06 +0000 (00:50 -0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 9 Dec 2015 22:30:10 +0000 (20:30 -0200)
commit67125ae4e0fc404eb33eaced49888828c8348453
treee3fa059db1a960936ac76002714a47eb6b39e9d5
parent5f45878133945e1ce28d39df8cacddb53512758f
placesview: implement available space

GtkPlacesView is a widget to display locations
in the computer, such as root ("/") and volumes,
separating the persistent devices from removable
ones.

From the latest mockups[1], GtkPlacesView would
display the available space of local drives like
partitions. This, however, is not implemented in
the current codebase.

Fix that by implementing the measurement of disk
space, and adding a new property GtkPlacesView::show-disk-usage
which controls the visibility of measured disks.

[1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/nautilus/nautilus-next/other-locations.png

https://bugzilla.gnome.org/show_bug.cgi?id=759225
gtk/gtkplacesview.c
gtk/gtkplacesviewrow.c
gtk/gtkplacesviewrowprivate.h
gtk/ui/gtkplacesviewrow.ui